package com.lihan.GetSeatInLib.Service;

import java.util.List;

import com.lihan.GetSeatInLib.Domain.LibTable;
import com.lihan.GetSeatInLib.Domain.SeatModel;


/**
 * 
 * @ClassName: SeatService
 * @Description: 具体对座位的操作
 * @author ASUS
 * @date 2022年2月28日
 *
 */
public interface SeatService {
	
	//通过所属的桌子查找所有的座位
	List<SeatModel> SearchByLibTabel(LibTable table);
	
	//增加seat
	boolean CreatNewSeat(SeatModel seat);
	
	//更新Seat
	boolean UpdateSeat(SeatModel seat);
	
	//ID查询
	SeatModel getSeatById(Long id);
	
	//删除
	boolean DeleteById(Long id);
	
	//解锁和上锁，
	boolean LockSeat(Long BelongTableID,Long ID);
	
	boolean UnLockSeat(Long BelongTableID,Long ID);
	
	boolean LockSeat(Long ID);
	
	boolean UnLockSeat(Long ID);
	
	//进入使用状态
	boolean SeatInUsed(Long ID);
	
	//从使用状态中回到Free状态，（在订单结束或取消时调用）
	boolean UnSeatInUsed(Long ID);
	

}
